package cn.dianhun.security.repository;

import cn.dianhun.security.pojo.TUserRoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author cyt
 * @create 2020-07-17 17:02
 */
@Repository
public interface UserRoleRepository extends JpaRepository<TUserRoleEntity, Long> {
    /**
     * // UID 得到 角色
     * @param uid
     * @return
     */
    TUserRoleEntity findByUserId(String uid);
}
